﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Feedbacks
{
    public static class FeedbackBLL
    {
        public static int GetFeedbackCount(IList<Condition> conditionArray)
        {
            return FeedbackDAL.GetFeedbackCount(conditionArray);
        }

        public static List<FeedbackEntity> GetFeedbackList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return FeedbackDAL.GetFeedbackList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static FeedbackEntity GetFeedback(int feedbackID)
        {
            return FeedbackDAL.GetFeedback(feedbackID);
        }

        public static int InsertFeedback(FeedbackEntity feedback)
        {
            return FeedbackDAL.InsertFeedback(feedback);
        }

        public static int UpdateFeedback(FeedbackEntity feedback)
        {
            return FeedbackDAL.UpdateFeedback(feedback);
        }

        public static int DeleteFeedback(int feedbackID)
        {
            return FeedbackDAL.DeleteFeedback(feedbackID);
        }
    }
}
